package cn.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Orders entity. @author MyEclipse Persistence Tools
 */

public class Orders implements java.io.Serializable {

	// Fields

	private Integer id;
	private User user;
	//private Goods goods;
	private String num;
	private String status;
	private String address;
	private String phone;
	//private Integer quantity;
	private Float money;
	private String receiver;
	private Integer isDelete;
	private Date creDate;
	private Set ordergoodses = new HashSet(0);

	// Constructors

	/** default constructor */
	public Orders() {
	}

	/** full constructor */
	public Orders(User user, /*Goods goods,*/ String num, String status,
			String address, String phone, /*Integer quantity,*/ Float money,
			String receiver, Integer isDelete, Date creDate,
			Set ordergoodses) {
		this.user = user;
		//this.goods = goods;
		this.num = num;
		this.status = status;
		this.address = address;
		this.phone = phone;
		//this.quantity = quantity;
		this.money = money;
		this.receiver = receiver;
		this.isDelete = isDelete;
		this.creDate = creDate;
		this.ordergoodses = ordergoodses;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	/*public Goods getGoods() {
		return this.goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}*/

	public String getNum() {
		return this.num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	/*public Integer getQuantity() {
		return this.quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}*/

	public Float getMoney() {
		return this.money;
	}

	public void setMoney(Float money) {
		this.money = money;
	}

	public String getReceiver() {
		return this.receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public Integer getIsDelete() {
		return this.isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Date getCreDate() {
		return this.creDate;
	}

	public void setCreDate(Date creDate) {
		this.creDate = creDate;
	}

	public Set getOrdergoodses() {
		return this.ordergoodses;
	}

	public void setOrdergoodses(Set ordergoodses) {
		this.ordergoodses = ordergoodses;
	}

}